import { postRequest,getRequest } from '@/lib/smart-request';
export const userApi = {
	loginByApp: (param) => {
	  return postRequest('/login-api/oauth/third/loginByPassword', param);
	},
	getUserInfo:()=>{
		return getRequest('/user/front/users/info',false)
	},
	sendCode:(phone)=>{
		return getRequest('/user/front/users/code/send?phone='+phone)
	},
	userLogin:(param)=>{
		return postRequest('/user/front/users/login', param);
	},
};